﻿			<center>
			<div id="buyBox">
				<table>
					<tr>
						<td rowspan="5">
							<img src= "/resources/img/1111.png" align="left" />
						</td>
					</tr>
					<tr>
						<td colspan="4" id="buyTicketName">${sight.name }</td>
					</tr>
					<tr>
						<td>가격</td>
						<td colspan="3" id="buyPrice">${ticket.price }</td>
					</tr>
					<tr>
						<td>할인가</td>
						<td colspan="3" id="buyDiscountPrice">${currentPrice }</td>
					</tr>
					<tr>
						<td>남은시간</td>
						<td colspan="3" id="buyDay">${ticket.deadline }</td>
					</tr>
					<tr>
						<td colspan="3">
							<div id="buyTicketNumBox">
								<div class="buyNumBox"></div>
							</div>
						</td>
						
						<td colspan="2">[할인미정]</td>
						<!-- 할인 시 [할인확정]으로 변경 -->
					</tr>			
					<tr>
						<td colspan="3" id="buyDiscountNumber">${ticket.goal_count }이상 구매시 할인</td>
						<td id="buyCurrent">50</td>
						<td id="buyTicketTotal"> / ${totalTicket }</td>
					</tr>
				</table>
			</div>

			<div id="ticketBuyList">
				<p>최대 10매까지 구매가능합니다.</p>
				<div id="ticketList">
					<table>
						<tr>
							<td colspan="2">관광지명</td>
							<td>수량</td>
							<td>원가</td>
							<td>할인율</td>
							<td>주문가</td>
						</tr>
						<tr>	
							<td colspan="2" id="buyTicketList_TicketName">${sight.name }</td>
							<td id="buyTicketList_CouponNum">
								<select id="buyTicketList" name="list" size="1" [multiple]>
									<option value="1">1
									<option value="2">2
									<option value="3">3
									<option value="4">4
									<option value="5">5
									<option value="6">6
									<option value="7">7
									<option value="8">8
									<option value="9">9
									<option value="10">10
								</select>
							</td>
							<td id="buyTicketList_Price">${ticket.price }</td>
							<td id="buyTicketList_DiscountPercent">${ticket.discount_rate }</td>
							<td id="buyTicketList_DiscountPrice">${currentPrice }</td>
						</tr>
					</table>
				</div>
					<a href="buyList?sight_id=${sight.id }&ticket_id=${ticket.id }&num=num" onclick="buyOk()">
						<button class ="button white medium bigrounded" id="buyOkBtn">
							확정하기
						</button>
					</a>
			</div>
			</center>
		</div>